package com.hd.service.activiti;

import java.io.Serializable;

import com.hd.entity.activiti.ProcessInstanceEntity;
import com.hd.util.result.PageInfo;

public interface ProcessInstanceEntityService {
	 /**
	  * 保存
	  * @param userTask
	  * @return
	  */
	 Serializable save(ProcessInstanceEntity processInstance);
	 
	 /**
	  * 更新
	  * @param userTask
	  */
    void update(ProcessInstanceEntity processInstance) ;

    /**
     * 刪除
     * @param userTask
     */
    void delete(ProcessInstanceEntity processInstance) ;
    
    void deleteById(String processInstanceId);
    /**
     * 获取一条记录
     * @param processInstanceId 流程实例id
     * @return
     */
    ProcessInstanceEntity get(String processInstanceId);
    
    void selectDataGrid(PageInfo info);
    
}
